package cn.iocoder.yudao.module.picturebook.controller.admin.book.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@Schema(description = "管理后台 - 书籍全部信息 Response VO")
@Data
public class BookSaveAllReqVO {
    @Schema(description = "书籍ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1593")
    private Long id;

    @Schema(description = "书名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "书名不能为空")
    private String title;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "出版社")
    private String publisher;

    @Schema(description = "绘本图片内容")
    private List<String> contextImage;
    @Schema(description = "绘本音频内容")
    private List<String> contextAudio;

    @Schema(description = "封面图URL，可以是第一个图片的地址", example = "https://www.iocoder.cn")
    private String coverUrl;

    @Schema(description = "属于什么书架：1-中文，2-英文", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "属于什么书架：1-中文，2-英文不能为空")
    private Integer language;

    @Schema(description = "分级（如“牛津树1级”）")
    @NotEmpty(message = "分级（如“牛津树1级”）不能为空")
    private String level;

    @Schema(description = "分类（如“牛津树”“桥梁书”等）")
    @NotEmpty(message = "分类（如“牛津树”“桥梁书”等）不能为空")
    private String category;
}
